import type { LayoutLoad } from './$types';
import { getCurrentMenu } from "@store/menu";
// import { currentMenu$ } from "@store/menu";
// import { get as getVal } from "svelte/store";
export const load = (async ({url}) => {
  return {
    menu_name: getCurrentMenu(url.pathname)?.name
  };
}) satisfies LayoutLoad;
// this is needed to give us force prerendering of all pages
export const prerender = true